home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / pascal / envcalc.com / ENVCALC.DES < prev    next >
Encoding:
Text File  |  1991-03-16  |  824 b   |  27 lines

  1. ENVCALC.ZIP demonstrates storing variables using a DOS-like
  2. environment table (tCollection), and using them in SET, CALC,
  3. LET, and ECHO commands. For clarity, [] are used instead of %s to
  4. indicate variables (or "macros").  Here's a sample session:
  5.  
  6.  C>ENVCALC
  7.  ? CALC 2+(3*4)
  8.  > 14
  9.  ? LET this=2+(3*4)
  10.  > THIS=14
  11.  ? SET that=2+(3*4)  
  12.  > THAT=2+(3*4)
  13.  ? LET this=[this]+[that]
  14.  > THIS=28
  15.  ? SET
  16.  > THAT=2+(3*4)
  17.  > THIS=28
  18.  ?
  19.  
  20. Logical and Boolean operators are also implemented, with FALSE
  21. being represented as 0 and TRUE being represented as -1 (NOT 0).
  22. The calc command is based on Borland's tCalc object, and does not
  23. support precedence outside of parentheses. Simple command line
  24. demo, easy to adapt. Uploaded by author, Ted Husted.
  25.  
  26. /PARSING/CALCULATOR/EXPRESSIONS/EXPRESSION EVALUATOR/TCALC/
  27.